import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/admin";

// 查询用户列表
export function listUser(query) {
  return request({
    url: '/user/page',
    method: 'post',
    data: query
  })
}



// 新增用户
export function addUser(data) {
  return request({
    url: '/user/addUser',
    method: 'post',
    data: data
  })
}

// 修改用户
export function updateUser(data) {
  return request({
    url: '/user/updUser',
    method: 'post',
    data: data
  })
}

// 删除用户
export function delUser(userId) {
  return request({
    url: '/user/deleteById?id='+userId ,
    method: 'get'
  })
}

